/*
 * @Author: Liu jm (cdtye)
 * @Date: 2019-11-14 17:29:35
 * @LastEditTime: 2021-03-29 12:24:45
 * @LastEditors: Liu Zhiwang
 * @Description:
 */
// vector-edtor数据接口
// 创建人:liujm
// 创建日期:2019年11月14日
import request from '@/utils/request';
export function getVectorLineData() {
  return request({
    url: '/gis/line/getVector',
    method: 'get',
    params: { geometryOrgeojson: 'vectorGeometry',
      filterEmpty: 0
    }
  });
}

export function saveVectorLineData(data) {
  return request({
    url: '/basic/gisInfo/saveLine',
    method: 'post',
    data: data
  });
}

export function getVectorLinesiteData() {
  return request({
    url: '/gis/lineSite/getVector',
    method: 'get',
    params: { geometryOrgeojson: 'vectorGeometry',
      filterEmpty: 0 }
  });
}
export function saveVectorLinesiteData(data) {
  return request({
    url: '/basic/gisInfo/saveLineSite',
    method: 'post',
    data: data
  });
}

/**
 * @description: 更新支柱地理位置 liujm
 * @param {type} {}
 * @return:
 */
export function savePillarGeo(data) {
  return request({
    url: '/basic/pillar/saveGis',
    method: 'post',
    data: data
  });
}

// 根据type和相应id，获得服务地址
export function getGisPath(query) {
  return request({
    url: '/basic/draw/getGisPath',
    method: 'get',
    params: query
  });
}
